import { request } from './index';

export const getHomeAll = () => {
    // 首页所有数据
    return request({
        url: '/api/index'
    });
}

export const getHomeGoods = (type = 'sales', page = 1) => {
    // 首页商品数据
    return request({
        url: `/api/index?${type}=1&page=${page}`,
    });
}